package com.example.dmweb.electricity.model;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@JsonPropertyOrder({"city", "year", "type_1", "type_2", "voltage_1", "voltage_2"})
public class ElectricityQueryYearlyResponse {

	/**
	 * 市
	 */
	private String city;

	/**
	 * 年份
	 */
	private int year;

	private String type_1;

	private String type_2;

	private String voltage_1;

	private String voltage_2;

	private List<priceInfo> pricesList = new ArrayList<>();

	@Data
	public static class priceInfo {

		private String month;

		private List<priceData> prices = new ArrayList<>();
	}

	@Data
	public static class priceData {

		/**
		 * 开始时间~结束时间
		 */
		private String period;

		/**
		 * 时段分类：尖、峰、平、谷、深谷
		 */
		private String timeCategory;

		/**
		 * 价格
		 */
		private BigDecimal price;

	}
}
